STEP 8: Let's assign our newest event to a brand new key: 's'!

Remember, the line that reads stage.event_key("a",·a_key)¬ is called the event handler.

  • In the line that reads: def·a_key():, change the event name to s_key().
  • In the event handler, change the first argument to "s" .
  • Change the second argument in the event handler to s_key.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)